/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.webaccess.retailws.Delegate;

import com.webaccess.retailws.Bean.BrandBean;
import com.webaccess.retailws.DAO.BrandDAO;
import java.util.LinkedHashMap;

/**
 *
 * @author Owner
 */
public class BrandDelegate {

    BrandDAO brandDAOObj = null;

    public BrandDelegate() {
        brandDAOObj = new BrandDAO();
    }

    public BrandBean getBrand(Long brandId) {
        return brandDAOObj.getBrand(brandId);
    }

    public BrandBean[] getAllBrand() {
        return brandDAOObj.getAllBrand();
    }

    public LinkedHashMap getBrandLHMap() {
        return brandDAOObj.getBrandLHMap();
    }

    public boolean saveBrand(BrandBean brandBeanObj) {
        return brandDAOObj.saveBrand(brandBeanObj);
    }

    public boolean deleteBrand(Long brandId) {
        return brandDAOObj.deleteBrand(brandId);
    }

    public BrandBean[] searchBrandByStatus(Long brandStatusId) {
        return brandDAOObj.searchBrand(brandStatusId,null);
    }

    public BrandBean[] searchBrandByName(String brandName) {
        return brandDAOObj.searchBrand(0L, brandName);
    }

    public BrandBean[] getBrandProductList() {
        return brandDAOObj.getBrandProductList();
    }
}
